DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomDataSet Class / Add Method / Add(IEnumerable<DicomAttribute>) Method
A list of DicomAttribute to add
Example

In This Topic
    Add(IEnumerable<DicomAttribute>) Method
    In This Topic
    Add a collection of DicomAttributes to the DataSet
    Syntax
    'Declaration
     
    
    Public Overloads Sub Add( _
       ByVal attributes As System.Collections.Generic.IEnumerable(Of DicomAttribute) _
    ) 
    public void Add( 
       System.Collections.Generic.IEnumerable<DicomAttribute> attributes
    )

    Parameters

    attributes
    A list of DicomAttribute to add
    Example
    DicomDataSet copiedDS = new DicomDataSet(); 
    DicomDataSet ds = new DicomDataSet("Dataset.dcm");
                        
    List<DicomAttribute> attributesToAdd = new List<DicomAttribute>();
    foreach (DicomAttribute attr in ds) 
    {
        attributesToAdd.Add(attr);
    }
    copiedDS.Add(attributesToAdd);
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also